package cn.com.guage.string;

public class StringTest {

	public static void main(String[] args) {
		char[] value = { 'a', 'b', 'c', 'd' };
		String str = String.copyValueOf(value);
		String str2 = String.valueOf(value);
		System.out.println(str);
		System.out.println(str2);
		String str3 = new String("asdfzxc");
		char ch = str3.charAt(4);// ch = z
		System.out.println(0);

		String str1 = new String("asdfzxc");
		String str22 = str1.substring(2);// str2 = "dfzxc"
		String str33 = str1.substring(2, 5);// str3 = "dfz"
		
		System.out.println(str22);
	}

}
